package cn.llssit.project.wechatapi.controller;

import cn.llssit.framework.web.domain.AjaxResult;
import cn.llssit.project.wechatapi.mapper.MovieSwiperMapper;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: Lesan
 * @Date: 2020-06-27
 */
@Controller
@RequestMapping("/wechatapi")
public class WcMovieSwiperController {
    @Autowired
    private MovieSwiperMapper movieSwiperMapper;

    @ApiOperation("")
    @GetMapping("/getSwiper")
    @ResponseBody
    public AjaxResult getSwiper(){
        return AjaxResult.success(movieSwiperMapper.selectActive());
    }
}
